package com.test.ds.sort.objectsort;

public class Person {
	private String lastName;
	private String firstName;
	private int age;
	//---------------------------------------------
	public Person(String last, String first, int a){
		lastName = last;
		firstName = first;
		age = a;
	} //end Person()
	//----------------------------------------------
	public void displayPerson(){
		System.out.print("  Last name: " + lastName);
		System.out.print(", First name: " + firstName);
		System.out.println(", Age: " + age);
	} // end displayPerson()
	//----------------------------------------------
	public String getLast(){
		return lastName;
	} 
}
